package com.dwb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * @author manke
 * @date 2020-06-27 14:52:40
 * @email 
 */
@Data
@ApiModel("订单")
public class SOrder {

    @ApiModelProperty(value = "自增id")
    @Id
    private Integer id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "用户备注")
    private String userNote;

    @ApiModelProperty(value = "快递id")
    private Integer expressId;

    @ApiModelProperty(value = "快递单号")
    private String expressNumber;

    @ApiModelProperty(value = "支付方式id")
    private Integer paymentId;

    @ApiModelProperty(value = "订单状态（0待确认,1已确认/待支付,2已支付/待发货,3已发货/待收货,4已完成,5已取消,6已关闭）")
    private Byte status;

    @ApiModelProperty(value = "支付状态（0未支付,1已支付,2已退款,3部分退款）")
    private Boolean payStatus;

    @ApiModelProperty(value = "扩展展示数据")
    private String extensionData;

    @ApiModelProperty(value = "购买商品总数量")
    private Integer buyNumberCount;

    @ApiModelProperty(value = "增加的金额")
    private BigDecimal increasePrice;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal preferentialPrice;

    @ApiModelProperty(value = "订单单价")
    private BigDecimal price;

    @ApiModelProperty(value = "订单总价(订单最终价格)")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "已支付金额")
    private BigDecimal payPrice;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundPrice;

    @ApiModelProperty(value = "退货数量")
    private Integer returnedQuantity;

    @ApiModelProperty(value = "客户端类型（pc,h5,ios,android,alipay,weixin,baidu）取APPLICATION_CLIENT_TYPE常量值")
    private String clientType;

    @ApiModelProperty(value = "订单模式（0销售型,1展示型,2自提点,3虚拟销售）")
    private Boolean orderModel;

    @ApiModelProperty(value = "是否线下支付（0否，1是）")
    private Boolean isUnderLine;

    @ApiModelProperty(value = "支付时间")
    private Integer payTime;

    @ApiModelProperty(value = "确认时间")
    private Integer confirmTime;

    @ApiModelProperty(value = "发货时间")
    private Integer deliveryTime;

    @ApiModelProperty(value = "取消时间")
    private Integer cancelTime;

    @ApiModelProperty(value = "收货时间")
    private Integer collectTime;

    @ApiModelProperty(value = "关闭时间")
    private Integer closeTime;

    @ApiModelProperty(value = "评论时间")
    private Integer commentsTime;

    @ApiModelProperty(value = "商家是否已评论（0否,大于0评论时间）")
    private Integer isComments;

    @ApiModelProperty(value = "用户是否已评论（0否,大于0评论时间）")
    private Integer userIsComments;

    @ApiModelProperty(value = "商家是否已删除（0否,大于0删除时间）")
    private Integer isDeleteTime;

    @ApiModelProperty(value = "用户是否已删除（0否,大于0删除时间）")
    private Integer userIsDeleteTime;

    @ApiModelProperty(value = "添加时间")
    private Integer addTime;

    @ApiModelProperty(value = "更新时间")
    private Integer updTime;

}